<!--首页-->
<template>
    <div>
        <fc-ad/>
        <fc-search @searchResult="searchResult" :searchParams="searchParams"/>
        <fc-new-property/>
        <!--登录用户可以看到代理人-->
        <fc-agent/>
    </div>
</template>

<script>
    import FcAd from '@/components/property/AdProperty.vue'
    import FcSearch from '@/components/property/SearchProperty.vue'
    import FcNewProperty from '@/components/property/NewProperty.vue'
    import FcAgent from '@/components/agent/MyAgent.vue'

    export default {
        data() {
            return {
                searchParams: {
                    url: '/test',
                    data: {
                        pageIndex: 0,
                        pageSize: 2,
                    }
                }
            }
        },
        components: {
            FcAd, FcSearch, FcNewProperty, FcAgent
        },
        methods: {
            searchResult(data) {
                console.log(data);
            }
        }
    }
</script>

